package me.tuyou.classloader;

import java.net.URL;
import java.net.URLClassLoader;

public class URLPathClassLoader extends URLClassLoader{

	public URLPathClassLoader(URL[] classPath, ClassLoader parent){
		super(classPath, parent);
	}
	
	@Override
	public Class<?> findClass(String name) throws ClassNotFoundException {
		Class<?> aClass = findLoadedClass(name);
		if(aClass != null){
			return aClass;
		}
		return super.loadClass(name);
	}
}
